package publishSubscribe;

public class Main {

    public static void main(String[] args) {

        Publisher publisher = new Publisher();
        Subscriber s1, s2;
        s1 = new Subscriber(new Person("Max"), publisher);
        publisher.doSomething("Achtung, Achtung!");
        s2 = new Subscriber(new Person("Hanna"), publisher);
        publisher.doSomething("Alle Hände hoch!");

    }

}
